<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>首页</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="{{url('css/main.css')}}" type="text/css" rel="stylesheet" />
    <script src="{{url('js/layer.m.js')}}"></script>
    <script>
        function ts(){

            layer.open({
                title: [
                    '提示',
                ],
                content: '正在开发中。。。'
            });
        }
    </script>
</head>

<body>
<div class="box_top">
    @if ($getData->userid==0)
    <h1 class="title_top">
        <span class="name_user" style="color:red">{{$getData->nickname}}</span>
        您好!您还不是会员,
        <a href="./login" style="color: #ffffff;">请<span style="color:#000000;">注册</span>成为会员</a>
    </h1>
    @else
    <h1 class="title_top">尊敬的会员 <span class="name_user" style="color: red;">{{$getData->data[0]->name or $getData->nickname}}</span>{{--<span class="id_user">(330682****345X)</span>--}} 您好!</h1>
    @endif

    <div style="margin-top:8px;">
        @if (!empty($getData->data))
            @foreach ($getData->data as $info)
                <a class="title_contant">
                    {{$info->shopName}}余额为：<span class="coins_user">￥{{$info->amount/100}}<br /> </span>
                </a>
            @endforeach
        @endif
        {{--<a class="title_contant">您的当前状态为：<span class="state_user">未上机</span></a>--}}
    </div>
</div>

<div style=" width:100%; height:8px; background-color:#efefef;  border-top:solid 1px #e3e3e5; border-bottom:solid 1px #e3e3e5;"></div>

<div class="box_main_mid">
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a @if ($getData->userid)href="{{url('/wx/getBars').'?userid='.$getData->userid}}" @else onclick="nouserid()" @endif><img src="{{url('images/index_ico_reservation.png')}}" width="60">
            <a>订座服务</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{url('/wx/activity')}}"><img src="{{url('images/index_ico_vip.png')}}" width="60">
            <a>会员天地</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{url('/wx/shop')}}"><img src="{{url('images/index_ico_shop.png')}}" width="60">
            <a>积分商城</a></a>
        </div>
    </div>
</div>

<div class="box_main_mid">
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{url('/wx/barList')}}"> <img src="{{url('images/index_ico_location.png')}}" width="60">
            <a>网咖定位</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{url('/wx/game')}}"><img src="{{url('images/index_ico_union.png')}}" width="60">
            <a>游戏天地</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{$home->value}}"><img src="{{url('images/index_ico_intro.png')}}" width="60">
            <a>主页介绍</a></a>
        </div>
    </div>
</div>

<div class="box_main_mid">
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a href="{{url('/wx/commentindex')}}"><img src="{{url('images/index_ico_advice.png')}}" width="60">
            <a>意见反馈</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a @if ($getData->userid)href="{{url('/wx/transfer')}}" @else onclick="nouserid()" @endif><img src="{{url('images/index_ico_transfer.png')}}" width="60">
            <a>网咖转帐</a></a>
        </div>
    </div>
    <div class="box_ico">
        <div style="width:60px; height:90px; margin:auto; text-align:center;">
            <a @if ($getData->userid)href="{{url('/wx/recharge')}}" @else onclick="nouserid()" @endif><img src="{{url('images/index_ico_topup.png')}}" width="60">
            <a>网咖充值</a></a>
        </div>
    </div>
    <script>
        function nouserid() {
            if(confirm('您还没注册，注册后才可以用此功能'))
            {
                window.location.href="{{url('/wx/login')}}"
            }
        }
    </script>
</div>
{{--<a href="{{url('/wx/barpay')}}">test</a>--}}
</body>
</html>
